<?php
class Mozg_Response_Collection
{
    /**
		список объектов запроса
     */
    static private $_responses = array();

    static public function Get($protName)
    {
        $responseClassName = 'Mozg_Response_' .$protName;
        
        if (! isset(self::$_responses[$protName]) || ! (self::$_responses[$protName] instanceof $responseClassName)) {
            self::$_responses[$protName] = new $responseClassName();
        }
        
        return self::$_responses[$protName];
    }
}